<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>获取浏览器信息</title>
<script type="text/javascript" src="MyShortKey.js"></script>
<script language="JavaScript" type="text/javascript">
	window.onload = function()
	{
		document.getElementById("gototop1").onclick = function(){GoToTopSharp();GoToTopSharp();};
		document.getElementById("gototop2").onclick = function(){GoToTopScroll();};
		document.getElementById("gototop4").onclick = function(){GoToTopRoll();};
		document.getElementById("heights").innerHTML =  GetHeight() + "px看到哦啊没？？";
		//xGetKeyCode(event);
		//alert("看什么！");
		//document.onkeyup = function(){GetKeyCode(event);};
		//alert("还看什么！");
		document.onkeyup = function(event){
			//alert(IsEditing());
			//xGetKeyCode(event);
			if(GetKeyCode2(event))
			{
				document.getElementById("xkeycodesx").innerHTML = "已经载入！" + GetKeyCode2(event);
			}
			//document.getElementById("xkeycodesx").innerHTML = "已经载入！" + GetKeyCode2(event);
			//document.getElementById("xkeycodesx").innerHTML = "已经载入！";
			};
	};
	

</script>
</head>
<body>
	<div style="height: 1800px;width: 3500px;">
		123<br />
		<div onclick="GoToRootScroll();">跳到底部去！</div>
	</div>
	<div style="height: 1200px;">
		<a id="gototop1" >返回顶部1</a><br />
		<a id="gototop2" >返回顶部2</a><br />
		<a id="gototop3" >滚回顶部3</a><br />	
		<a id="gototop4" >滚回顶部4</a><br />
		<a id="gototop5" href="javascript:GoToTopSharp();" >返回顶部1</a><br />
		<a id="gototop6" href="javascript:GoToTopScroll();" >返回顶部2</a><br />
		<a id="gototop7" href="javascript:GoToTopRoll();" >滚回顶部3</a><br />
		<a id="gototop8" >滚回顶部4</a><br />
		<a href="">1212</a><br />
		<div id="heights"></div>
	</div>
	<div style="height: 30px">这是底部文字!</div>
	<div>
		你按下的键值是：
		<div id="xkeycodesx">xxoo</div>
		<input id="AK47" type="text" onkeyup="GetKeyCode(event);"/>
	</div>
</body>
</html>